package com.ssy.lingxi.member.merchant.model.constant;

import com.ssy.lingxi.common.language.LanguageHolder;

/**
 * 会员整改状态枚举
 * @author yzc
 * @version 2.0.0
 * @date 2021/6/3
 */
public enum MemberRectifyStatusEnum {

    /**
     * 待发送整改通知 - 1
     */
    WAIT_SEND(1, "待发送整改通知"),

    /**
     * 待进行整改 - 2
     */
    WAIT_RECTIFY(2, "待进行整改"),

    /**
     * 待确认整改结果 - 3
     */
    WAIT_CONFIRM(3, "待确认整改结果"),

    /**
     * 确认整改结果不通过 - 4
     */
    REJECT(4, "确认整改结果不通过"),

    /**
     * 确认整改结果通过 - 5
     */
    APPROVE(5, "确认整改结果通过");


    private final Integer code;

    MemberRectifyStatusEnum(Integer code, String message) {
        this.code = code;
    }

    public static String getCodeMessage(Integer code) {
        return LanguageHolder.getName(MemberRectifyStatusEnum.class, code);
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return LanguageHolder.getName(this.getClass(), this.getCode());
    }

}